const mongoose = require('mongoose')

// 设置属性类型
let NoteSchema = new mongoose.Schema({
  title: String,
  Context: String,
  tags: [String],
  updateTime: {
    type: Date,
    default: new Date()
  },
  name: {
    type: String,
    default: "admin"
  }
})
let NoteModel = mongoose.model('notes', NoteSchema)

module.exports = NoteModel